import request from 'umi-request';
import defaultSettings from '../../../../config/defaultSettings';


// export async function userLogin(params) {
//     return request(`${defaultSettings.restAPI}/auth/login`, {
//         method: 'POST',
//         data: params,
//     });
// }

export async function userLogin(params) {
    return request('api/auth/login', {
        method: 'POST',
        data: params,
    });
}

export async function getFakeCaptcha(mobile) {
    return request(`/api/login/captcha?mobile=${mobile}`);
}